<template>
  <div id="wrap">
    <h1>RouterView插槽子组件</h1>
    <p>{{ $route.params }}</p>
    <p>props的id：{{ props.id }}</p>
    <p>props的title：{{ props.title }}</p>
    <p>props的content：{{ props.content }}</p>
    <p v-for="item in props.view" :key="item">{{ item }}</p>
  </div>
</template>

<script lang="ts">
export default {
  name: 'dayStuDemo62',
};
</script>

<script lang="ts" setup>
import { useRoute } from 'vue-router';
import { type classA } from '../StuDemo62.vue';


const route = useRoute();
console.log(route.params,'route.params');

const props = defineProps<{
  id: string,
  title: string,
  content: string,
  view: classA
}>();
</script>

<style lang="scss"></style>
